package annoyField

import "fmt"

// User结构体
type User struct {
	name string
	age  int
}

type Manager struct {
	User
	rank int
}

func (self *User) UToString() string {
	return fmt.Sprintf("User： %p , %#v", self, self)
}

func (self *Manager) ToString() string {
	return fmt.Sprintf("Manager： %p , %#v", self, self)
}

// 构造函数
func NewManager(name string, age int, rank int) Manager {
	return Manager{User{name, age}, rank}
}
